<!DOCTYPE html>
<html>
<head>
    <title>登录调试 - KING神电竞</title>
</head>
<body>
    <h1>登录调试页面</h1>
    
    <div>
        <label>用户名:</label>
        <input type="text" id="username" value="admin">
    </div>
    
    <div>
        <label>密码:</label>
        <input type="password" id="password" value="king888">
    </div>
    
    <button onclick="testLogin()">测试登录</button>
    
    <p id="result">结果将显示在这里</p>
    
    <script>
        function testLogin() {
            const username = document.getElementById('username').value;
            const password = document.getElementById('password').value;
            
            console.log('测试登录:', username, password);
            console.log('用户名长度:', username.length);
            console.log('密码长度:', password.length);
            console.log('用户名比较:', username === 'admin');
            console.log('密码比较:', password === 'king888');
            
            let result = '';
            
            if (username.trim() === 'admin' && password.trim() === 'king888') {
                result = '✅ 登录成功！';
            } else {
                result = `❌ 登录失败！\n用户名: "${username}" (${username.length}个字符)\n密码: "${password}" (${password.length}个字符)`;
            }
            
            document.getElementById('result').textContent = result;
        }
        
        // 自动测试
        testLogin();
    </script>
</body>
</html>